package com.github.m6d21.sso.core.exception;

/**
 *<p>
 *LoginException
 *</p>
 *
 * @author liuyang
 * @date 2018-12-07 Fri 13:28:48
 * @since 1.0.0
 */
public class LoginException extends RuntimeException {

    private static final long serialVersionUID = 357352344577902663L;
    private Integer code = 400;

    public LoginException(String msg) {
        super(msg);
    }

    public LoginException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
